const db = require("../db")
const { querySql , queryOne }=require("../db")
const { UPLOAD_PATH } = require('../utils/constant')
var fs = require('fs');




function BannerList(){//查询所有轮播图
    return querySql(`select * from fs_bannerlist`)
}


function centreList(){//查询所有活动
    return querySql(`select * from fs_centrelist`)
}

function getConfiguration(){//查询系统配置
    return queryOne(`select * from fs_configuration`)
}



module.exports = {
    //轮播
    BannerList,
    //活动
    centreList,
    getConfiguration,
}